package co.fitstart.entity.courseware.exercise;

import com.demo2do.core.utils.Alias;

/**
 * LISS低强度恒速有氧训练类型
 * @author haiyan_xiao
 *
 */
@Alias("sportType")
public enum LissType {
    QUICK_WALK("quick_walk", "快走"),
    
    JOGGING("jogging", "慢跑"),
    
    STEP("step", "踏台阶"),
    
    CLIMB("climb", "爬楼"),
    
    SWIMMING("swimming", "游泳");

    private String alias;
    
    private String description;
    
    private LissType(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * 
     * @param ordinal
     * @return
     */
    public static LissType ordinalOf(int ordinal) {
        for (LissType type : LissType.values()) {
            if (type.ordinal() == ordinal) {
                return type;
            }
        }
        
        return null;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param alias the alias to set
     */
    public void setAlias(String alias) {
        this.alias = alias;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
}
